package com.baidu.sggc.data.req;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
public class ModelUpdateReq {
    private int id;
    private String techType;
    private String areaType;
    private String dataType;
    private String frameworkType;
    private String license;
    private String tags;
    private String extJson;
    /**
     * 更新人
     */
    @Schema(description = "更新人ID")
    private String updateId;

    public void validate() {
        if (id <= 0) {
            throw new IllegalArgumentException("id must be greater than 0");
        }
    }
}
